package com.wyk.springbootdemo.mapper;

import com.wyk.springbootdemo.entity.UserTest;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface UserMapper {
    @Insert("insert into user values(null,#{password},#{username})")
    @Options(useGeneratedKeys = true,keyProperty = "id",keyColumn = "id")
    int inset(UserTest USER);


}
